precmd_vcs_info() { 
    vcs_info 
}

setopt prompt_subst
zstyle ':vcs_info:git:*' formats '%F{240}(%b)'
precmd_functions+=( precmd_vcs_info )

RPROMPT='${vcs_info_msg_0_}'
# PROMPT='${vcs_info_msg_0_}%# '
